package com.atguigu.staservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 网站统计日数据
 * </p>
 *
 * @author testjava
 * @since 2020-03-14
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StatisticsDaily对象", description="网站统计日数据")
@TableName( "statistics_daily")
public class StatisticsDaily implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    @TableId(value = "date_calculated")
    @ApiModelProperty(value = "统计日期")
    private String dateCalculated;
    @TableId(value = "register_num")
    @ApiModelProperty(value = "注册人数")
    private Integer registerNum;
    @TableId(value = "login_num")
    @ApiModelProperty(value = "登录人数")
    private Integer loginNum;
    @TableId(value = "video_view_num")
    @ApiModelProperty(value = "每日播放视频数")
    private Integer videoViewNum;
    @TableId(value = "course_num")
    @ApiModelProperty(value = "每日新增课程数")
    private Integer courseNum;
    @TableId(value = "gmt_create")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    @TableId(value = "gmt_modified")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @Override
    public String toString() {
        return "StatisticsDaily{" +
                "id='" + id + '\'' +
                ", dateCalculated='" + dateCalculated + '\'' +
                ", registerNum=" + registerNum +
                ", loginNum=" + loginNum +
                ", videoViewNum=" + videoViewNum +
                ", courseNum=" + courseNum +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
